package com.fourthGroup.service;

import com.fourthGroup.model.Activity;
import com.fourthGroup.utils.Result;

import java.util.List;

public interface ActivityService {

    /**
     * 创建秒杀活动
     */
    Result<Activity> createActivity(Activity activity);

    /**
     * 获取活动列表
     */
    Result<List<Activity>> listActivities();

    /**
     * 获取活动详情
     */
    Result<Activity> getActivity(Long id);

    /**
     * 更新活动
     */
    Result<Activity> updateActivity(Activity activity);

} 